package com.javer.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.javer.dao.CommDao;

@Service
public class CommService {
	@Autowired private CommDao commDao;
	
	public void deleteById(String tableName, int id) {
		commDao.deleteByIds(tableName, new int[]{id});
	}
	
	public void deleteByProperty(String tableName, String propertyName, String propertyValue) {
		commDao.deleteByProperty(tableName, propertyName, propertyValue);
	}
	
	public Map getMapById(String tableName, int id) {
		return commDao.getMapById(tableName, id);
	}
	
}
